﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Data;

namespace newct
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            SqlConnection suib = new SqlConnection("Data Source=.;Initial Catalog=网页;Integrated Security=True");
            SqlDataAdapter duqu = new SqlDataAdapter("select top 3 * from jies ", suib);
            DataSet cc = new DataSet();
            duqu.Fill(cc, "a");
            c.DataSource = cc.Tables["a"];
            c.DataBind();

        }

        public string IsHot(object data)
        {
            if (data != DBNull.Value && Convert.ToBoolean(data))
            {
                return "<img src='ttt/new.png'>";
            }
            return "";

        }
    }
}